package com.ips.controller;

import com.ips.service.IPV4Service;
import com.ips.vo.IPInfoIVO;
import com.ips.vo.IPInfoOVO;
import com.ips.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * IP处理
 */
@RestController
@RequestMapping("/IPV4")
public class IPV4Controller {

    @Autowired
    private IPV4Service ipv4Service;

    @PostMapping("/getIPV4Info")
    public Result<List<IPInfoOVO>> getIPV4Info(@RequestBody IPInfoIVO ivo) {
        List<IPInfoOVO> ipv4Info = ipv4Service.getIPV4Info(ivo);
        return Result.ok(ipv4Info);
    }

}
